<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- dialcontrol.qdoc -->
  <title>UI Components: Dial Control Example | Qt Quick 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtquick-index.html">Qt Quick</a></td><td >
			UI 组件：<span lang="zh-cn">仪表盘</span>示例</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">UI 组件：<span lang="zh-cn">仪表盘</span>示例</h1>
<span class="subtitle"></span>
<!-- $$$customitems/dialcontrol-brief -->
<p>仪表盘控制示例演示如何创建速度计类型的仪表盘。</p>
<!-- @@@customitems/dialcontrol -->
<!-- $$$customitems/dialcontrol-description -->
<div class="descr"> <a name="details"></a>
<p>这个例子展示了如何创建一个仪表盘类型的控件。它结合了<a href="qml-qtquick-image.html">Image</a>元素与<a href="qml-qtquick-rotation.html">Rotation</a>变换和<a href="qml-qtquick-springanimation.html">SpringAnimation</a>行为，以产生一个交互式的速度计类型的表盘。</p>
<p class="centerAlign"><img src="images/qml-dialcontrol-example.png" alt="" /></p><p>文件：</p>
<ul>
<li><a href="qtquick-customitems-dialcontrol-content-dial-qml.html">customitems/dialcontrol/content/Dial.qml</a></li>
<li><a href="qtquick-customitems-dialcontrol-content-quitbutton-qml.html">customitems/dialcontrol/content/QuitButton.qml</a></li>
<li><a href="qtquick-customitems-dialcontrol-dialcontrol-pro.html">customitems/dialcontrol/dialcontrol.pro</a></li>
<li><a href="qtquick-customitems-dialcontrol-dialcontrol-qml.html">customitems/dialcontrol/dialcontrol.qml</a></li>
<li><a href="qtquick-customitems-dialcontrol-dialcontrol-qmlproject.html">customitems/dialcontrol/dialcontrol.qmlproject</a></li>
<li><a href="qtquick-customitems-dialcontrol-dialcontrol-qrc.html">customitems/dialcontrol/dialcontrol.qrc</a></li>
<li><a href="qtquick-customitems-dialcontrol-main-cpp.html">customitems/dialcontrol/main.cpp</a></li>
</ul>
<p><span lang="zh-cn">图片：</span></p>
<ul>
<li><a href="images/used-in-examples/customitems/dialcontrol/content/background.png">customitems/dialcontrol/content/background.png</a></li>
<li><a href="images/used-in-examples/customitems/dialcontrol/content/needle.png">customitems/dialcontrol/content/needle.png</a></li>
<li><a href="images/used-in-examples/customitems/dialcontrol/content/needle_shadow.png">customitems/dialcontrol/content/needle_shadow.png</a></li>
<li><a href="images/used-in-examples/customitems/dialcontrol/content/overlay.png">customitems/dialcontrol/content/overlay.png</a></li>
<li><a href="images/used-in-examples/customitems/dialcontrol/content/quit.png">customitems/dialcontrol/content/quit.png</a></li>
</ul>
</div>
<!-- @@@customitems/dialcontrol -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
